const express = require("express");
const bodyParser = require("body-parser");
let app = express();

//  加载静态文件
app.use(express.static("static"));
app.use(bodyParser.urlencoded({ extended: false }));
app.use(bodyParser.json());

//  引入用户路由
let userROuter = require("./routers/useRouter");
// express里的二级路由
app.use("/user", userROuter);
app.listen(8009);
